package com.shiyingzi.common;

import java.io.Serializable;

public class ResponseData implements Serializable {
	private static final long serialVersionUID = -5547394285498440828L;

	private boolean success;
	private String msg;
	private Object data;
	
	public ResponseData(boolean success) {
		this(success, null);
	}
	
	public ResponseData(boolean success, String msg) {
		this(success, msg, null);
	}
	
	

	public ResponseData(boolean success, String msg, Object data) {
		this.success = success;
		this.msg = msg;
		this.data = data;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return "ResponseData [success=" + success + ", msg=" + msg + ", data=" + data + "]";
	}

	
	

}
